package test.eleven;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class SetOfInteger {
	public static void main(String[] args) {
		Random rand=new Random(47);
		Set<Integer>intset=new HashSet<Integer>();
		for(int i=0;i<1000;i++){ 
			int a=rand.nextInt(30);
			System.out.print(a);
			intset.add(a);
		}
		System.out.println();
		System.out.println(intset);
	}
}
